package com.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.service.form.WasteForm;
import com.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "site", contextId = "wasteApiService")
public interface WasteApiService {

    @GetMapping("findAllWasteMessageByPageAndSiteId")
    Result findAllWasteMessageByPageAndSiteId(@RequestParam("current") Integer current, @RequestParam("pageSize") Integer pageSize);

    @PostMapping("addWasteMessageBySiteId")
    Result addWasteMessageBySiteId(@RequestBody WasteForm wasteForm);

    @PostMapping("setWasteOfPriceByWasteTypeAndSiteId")
    Result setWasteOfPriceByWasteTypeAndSiteId(@RequestBody WasteForm wasteForm);

}
